<template>
  <div class="sys_setting_formdata_style">
    <div class="item">
      <p class="title">
        登录设定
      </p>
      <div class="radio_wrp">
        <el-checkbox v-model="data.JE_SYS_PCLOGIN">
          PC同时登录
        </el-checkbox>
        <el-checkbox v-model="data.JE_SYS_APPLOGIN">
          手机同时登录
        </el-checkbox>
        <el-checkbox v-model="data.JE_CORE_SSOFLAG">
          启用SSO认证
        </el-checkbox>
        <el-checkbox v-model="data.JE_SYS_QUICKLOGIN">
          快捷登录
        </el-checkbox>
        <el-checkbox v-model="data.JE_SYS_WXQUICKLOGIN">
          微信快捷登录
        </el-checkbox>
        <el-checkbox v-model="data.JE_SYS_QQQUICKLOGIN">
          QQ快捷登录
        </el-checkbox>
        <el-checkbox v-model="data.JE_SYS_DDQUICKLOGIN">
          钉钉快捷登录
        </el-checkbox>
      </div>
      <div class="radio_wrp">
        <p class="title">
          登录方式
        </p>
        <div class="radio_wrp">
          <el-checkbox-group
            v-model="data.JE_CORE_VERIFY"
          >
            <el-checkbox
              v-for="(item, index) in dictlist.JE_CORE_VERIFY"
              :key="index"
              :label="item.code"
            >
              {{ item.text }}
            </el-checkbox>
          </el-checkbox-group>
        </div>
      </div>
    </div>
    <div class="item">
      <p class="title">
        用户默认密码
      </p>
      <el-input
        v-model="data.JE_SYS_PASSWORD"
        class="hasclick"
        clearable
      />
      <p class="holder">
        用户初始化时候的密码
      </p>
    </div>
    <div class="item">
      <p class="title">
        密码错误次数锁定账户
      </p>
      <el-input
        v-model="data.JE_CORE_ERRORPW"
        class="hasclick"
        clearable
      />
      <p class="holder">
        输入密码错误将用户锁定，设置3以下值表示不启动该功能
      </p>
    </div>
    <div class="item">
      <p class="title">
        token登录验证类
      </p>
      <el-input
        v-model="data.JE_CORE_TOKENBEAN"
        class="hasclick"
        clearable
      />
    </div>
    <div class="item">
      <p class="title">
        token登录验证方法
      </p>
      <el-input
        v-model="data.JE_CORE_TOKENMETHOD"
        class="hasclick"
        clearable
      />
    </div>
    <div class="item">
      <p class="title">
        SSO登录验证类
      </p>
      <el-input
        v-model="data.JE_CORE_SSOBEAN"
        class="hasclick"
        clearable
      />
    </div>
    <div class="item">
      <p class="title">
        SSO登录验证方法
      </p>
      <el-input
        v-model="data.JE_CORE_SSOMETHOD"
        class="hasclick"
        clearable
      />
    </div>
    <div class="item">
      <!-- <p class="title">
        是否启动首次登录修改密码
      </p> -->
      <el-checkbox v-model="data.INITPASSWORD">
        是否启用密码策略校验
      </el-checkbox>
    </div>
    <div class="item">
      <p class="title">
        密码策略正则表达式
      </p>
      <el-input
        v-model="data.REGEXP"
        class="hasclick"
        clearable
      />
      <!-- <p class="holder">
        密码为6-16位大小写字母+数字+特殊字符组合
      </p> -->
    </div>
    <div class="item">
      <p class="title">
        密码输入校验提示语
      </p>
      <el-input
        v-model="data.PROMPT"
        class="hasclick"
        maxlength="50"
        clearable
      />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Dlfw',
  props: {
    formdata: {
      type: Object,
      default: () => {},
    },
    dictlist: {
      type: Object,
      default: () => [],
    },
  },
  data() {
    const data = {
      JE_SYS_PCLOGIN: this.formdata.JE_SYS_PCLOGIN,
      JE_SYS_APPLOGIN: this.formdata.JE_SYS_APPLOGIN,
      JE_CORE_SSOFLAG: this.formdata.JE_CORE_SSOFLAG,
      JE_SYS_QUICKLOGIN: this.formdata.JE_SYS_QUICKLOGIN,
      JE_SYS_WXQUICKLOGIN: this.formdata.JE_SYS_WXQUICKLOGIN,
      JE_SYS_QQQUICKLOGIN: this.formdata.JE_SYS_QQQUICKLOGIN,
      JE_SYS_DDQUICKLOGIN: this.formdata.JE_SYS_DDQUICKLOGIN,
      JE_CORE_VERIFY: this.formdata.JE_CORE_VERIFY,
      JE_SYS_PASSWORD: this.formdata.JE_SYS_PASSWORD,
      JE_CORE_ERRORPW: this.formdata.JE_CORE_ERRORPW,
      JE_CORE_TOKENBEAN: this.formdata.JE_CORE_TOKENBEAN,
      JE_CORE_TOKENMETHOD: this.formdata.JE_CORE_TOKENMETHOD,
      JE_CORE_SSOBEAN: this.formdata.JE_CORE_SSOBEAN,
      JE_CORE_SSOMETHOD: this.formdata.JE_CORE_SSOMETHOD,
      INITPASSWORD: this.formdata.INITPASSWORD,
      REGEXP: this.formdata.REGEXP,
      PROMPT: this.formdata.PROMPT,
    };
    return {
      data,
    };
  },
};
</script>

<style lang="scss" scoped>

</style>
